package cn.acewill.yxd.yunxundian.ui.user;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import cn.acewill.yxd.yunxundian.BaseActivity;
import cn.acewill.yxd.yunxundian.R;

/**
 * Created by AAA on 2017/4/6.
 */

public class MessageNoticDetailActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setTitleBar("消息详情");
        setContentView(R.layout.message_detail);
        super.onCreate(savedInstanceState);
        initView();
    }
    public void initView() {
        Button sureBtn = (Button) findViewById(R.id.sureBtn);
        sureBtn.setVisibility(View.GONE);
        TextView msgTitle = (TextView) findViewById(R.id.msgTitle);
        msgTitle.setText(getIntent().getStringExtra("title"));
        TextView msgContent = (TextView) findViewById(R.id.msgContent);
        msgContent.setText(getIntent().getStringExtra("msg").replaceAll("<br/>","\n"));
        TextView lookAll = (TextView) findViewById(R.id.lookAll);
        lookAll.setVisibility(View.GONE);
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode==KeyEvent.KEYCODE_BACK){
            finish();
        }
        return super.onKeyDown(keyCode, event);
    }

}
